<?php
require_once "./db_config.php";
if(isset($_POST['id'])&&$_POST['id']!=''){
    $id=$_POST['id'];
    $name=$_POST['name'];
    $from=$_POST['from'];
    $to=$_POST['to'];
    $time=$_POST['time'];
    $duties=$_POST['duties'];
    $handleMan=$_POST['handleMan'];
    $reason=$_POST['reason'];
    $sql="INSERT INTO transfer_history VALUE('$id','$name','$from','$to','$time','$duties','$reason','$handleMan')";
    // echo $sql;
    $result=mysqli_query($conn,$sql);
    if(!$result){

    }else{
        echo 'success';
    }
}
mysqli_close($conn);
?>
